<template>
  <div class="info_box">
    <slot name="img">
      <van-image
        fit="contain"
        radius="6 6 0 0"
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
        alt="fail"
        class="img"
      ></van-image>
    </slot>

    <text><slot name="title">1111111111111111</slot></text>
    <div class="info_bottom">
      <div class="author">
        <slot name="head_img">
          <van-image
            round
            class="head_img"
            width="20"
            height="20"
            src="https://img01.yzcdn.cn/vant/cat.jpeg"
          ></van-image>
        </slot>
        <div class="author_name"><slot name="author_name">Gentle</slot></div>
      </div>
      <div class="like">
        <div class="like_icon"><slot name="like"></slot></div>
        <div><slot name="like_cnt">11</slot></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {},
};
</script>

<style scoped>
.info_box {
  margin-bottom: 10px;
  width: 100%;
  height: 100%;
  /* line-height: 20px; */
  border-radius: 6px;
  text-align: left;
  background-color: #fff;
  border: 1px solid rgba(187, 187, 187, 100);
}
/* .img{
  width: 172px;
  height: 225px;
  background-color: #101010;
} */
.img {
  width: 100%;
  /* height: 225px; */
  border-radius: 6px 6px 0 0;
}
text {
  /* margin-left: 10px; */
  padding-left: 10px;
  padding-right: 20px;
  margin-top: 10px;
  width: 90%;
  height: 100%;
  font-size: 14px;
  display: block;
  overflow-wrap: break-word;
  text-align: left;
  font-family: PingFangSC-regular;
}
.info_bottom {
  margin-top: 10px;
  margin-left: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.author {
  display: inline;
  /* display: flex;
  flex-direction: row;
  justify-content: start; */
}
.head_img {
  margin-left: 10px;
  width: 20px;
  height: 20px;
  line-height: 30px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(187, 187, 187, 100);
}
.author_name {
  margin-left: 5px;
  width: 100%;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
  display: inline;
  text-align: left;
  font-family: PingFangSC-regular;
}
.like {
  margin-top: 5px;
  margin-right: 10px;
  font-size: 13px;
  display: flex;
  flex-direction: row;
  justify-content: end;
}
.like_icon {
  /* margin-top: 1px; */
  margin-right: 2px;
}
</style>